﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    class Programmer : Istaff, Iwriter
    { 
        public string Name { get; set; }

        public Programmer(string name)
        {
            this.Name = name;
        }

        public void programmer()
        {
            Console.Write("我叫{0}，我是一名程序员。",this.Name);
        }

        void Istaff.staff()
        {
            Console.Write("我是一个打工人。");
        }

        void Iwriter.writer() 
        {
            Console.WriteLine("我是一名作家。");
        }
    }
}
